package hb.software.course.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.hb.software.base.domain.BaseEntity;
import hb.software.course.category.CourseCategory;

@Entity
@Table(name = "T_course")
public class Course extends BaseEntity<Long>{

	/**
	 *
	 */
	private static final long serialVersionUID = -5993609663216954514L;
	@ManyToOne
	@JoinColumn(name = "Category_ID")
	CourseCategory courseCategory;
	@Column
	String coursename;
	@Column
	String coursetime;

	public CourseCategory getCourseCategory() {
		return courseCategory;
	}
	public void setCourseCategory(CourseCategory courseCategory) {
		this.courseCategory = courseCategory;
	}
	public String getCoursename() {
		return coursename;
	}
	public void setCoursename(String coursename) {
		this.coursename = coursename;
	}
	public String getCoursetime() {
		return coursetime;
	}
	public void setCoursetime(String coursetime) {
		this.coursetime = coursetime;
	}


}
